<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>父子组件传值-父组件向子组件传值</title>
    <style> /*样式*/
        .box {
            width: 100px;
            height: 100px;
            background-color: greenyellow;
        }


    </style>
</head>
<body>


<div id="app">
    <box :message="content"></box> <!--template-->

</div>
</body>
<script src="../../../lib/vue.global.js"></script>

<script type="module">


    /**
     *  自定义属性
     * */
    import box from '../js/component/box.js'

    const createApp = Vue.createApp;

    createApp({  // vue instance
        data() {

            return {
                content: 'hello vue component'
            }
        },
        components: {
            box: box.box
        }
    }).mount('#app')


</script>


</html>